package org.jeecg.modules.common.baseentity;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;
import org.jeecg.common.aspect.annotation.Dict;

import java.util.List;
@Data
@NoArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@SuperBuilder(toBuilder = true)
@EqualsAndHashCode(callSuper = true)
public class BaseSchoolYearSemesterEntity extends BaseEntity{
    // 学年
    @ApiModelProperty(value = "学年")
    @Dict(dicCode = "id",dicText = "school_year_nickname",dictTable = "cou_school_year")
    private String schoolYearId;
    // 学期
    @ApiModelProperty(value = "学期")
    @Dict(dicCode = "id",dicText = "semester_name",dictTable = "cou_semester")
    private String semesterId;
    //下级部门：用于按当前登录部门实现数据过滤,只显示当前和下级部门的数据
    @TableField(exist = false)
    private List<String> subDepIdsList;
    //下级部门：用于按当前登录部门实现数据过滤,只显示当前和下级部门的数据
    @TableField(exist = false)
    private String  subDepSysOrgCodes;
    //用户身份：用于按当前登录用户的不同身份实现数据过滤
    @TableField(exist = false)
    private int userIdentity;
}
